package com.peng._05mvcboot03.mapper;

import com.peng._05mvcboot03.pojo.dto.UserLoginDTO;
import com.peng._05mvcboot03.pojo.vo.UserVO;
import org.apache.ibatis.annotations.Select;

/**
 * 用户Mapper
 * @Author peng
 * @Date 2024-04-26 17:09
 */
public interface UserMapper {

    /**
     * 查询用户信息
     * @param userLoginDTO 用户登录信息
     * @return UserVO
     */
    @Select("SELECT id,password,nickname " +
            "FROM mvc_user " +
            "WHERE username = #{username} " +
            "AND password = #{password}")
    UserVO selectUserByExample(UserLoginDTO userLoginDTO);
}
